package com.xquant.marketdata.curvestrip.controller;

import com.github.pagehelper.PageInfo;
import com.xquant.common.security.utils.SecurityUtils;
import com.xquant.marketdata.curvestrip.service.IrCurvePaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 利率曲线日报
 *
 * @Author yunnuo.yang
 */
@RestController
@RequestMapping("irCurvePaper")
public class IrCurvePaperController {

    @Autowired
    private IrCurvePaperService irCurvePaperService;
    //@Autowired
    //private UserService userService;

    @PostMapping(value = "/getIrCurveFormData.action")
    public PageInfo<Map> getIrCurveFormData(@RequestParam Map<String, Object> param) {

        PageInfo<Map> pageInfo = irCurvePaperService.queryIrCurveFormDataByPage(param);

        return pageInfo;
    }

    @PostMapping(value = "/getIrCurveFormChangeData.action")
    public PageInfo<Map> getIrCurveFormChangeDataByPage(@RequestParam Map<String, Object> param) {

        PageInfo<Map> pageInfo = irCurvePaperService.getIrCurveFormChangeData(param);

        return pageInfo;
    }


}
